from django.contrib import admin
from django.contrib.auth.models import User
from django.contrib.auth.admin import UserAdmin
from accounts.models import UserProfile, Role, UserTheme


admin.site.unregister( User )

class UserProfileInline( admin.StackedInline ):
    model = UserProfile

class UserProfileAdmin( UserAdmin ):
    inlines = [ UserProfileInline, ]

admin.site.register( User, UserProfileAdmin )
admin.site.register( Role )
admin.site.register( UserTheme )